package edu.sctu.practice.class02.lvchang.test08;

/**
 * Created by Administrator on 2015/10/10.
 */
public class Vehicles {

    public String brand;
    public String color;

    public Vehicles(String brand, String color) {

        this.brand = brand;
        this.color = color;
    }

    public void run() {
        System.out.println("我已经开动了喔！");
    }

    public void showInfo() {
        System.out.println("brand:" + brand + " " + "color:" + color);
    }

    public static void main(String[] args) {
        Vehicles vehicles = new Vehicles("火车", "绿色");
        vehicles.showInfo();
        vehicles.run();

    }
}
